import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.Display;

public class MyMIDlet extends MIDlet
{
    protected void startApp() throws MIDletStateChangeException
    {
        Display.getDisplay (this).setCurrent (new MyCanvas ()); 
    }

    protected void pauseApp()
    {
    }

    protected void destroyApp(boolean b) throws MIDletStateChangeException
    {
    }
}
